First Chapter
介紹LuCI基本環境
LuCI Related Folders
- /tmp
- /etc/config
root@OpenWrt:/# cat /etc/config/luci
config core 'main'
option lang 'auto'
option mediaurlbase '/luci-static/openwrt.org'
option resourcebase '/luci-static/resources'
config extern 'flash_keep'
option uci '/etc/config/'
option dropbear '/etc/dropbear/'
option openvpn '/etc/openvpn/'
option passwd '/etc/passwd'
option opkg '/etc/opkg.conf'
option firewall '/etc/firewall.user'
option uploads '/lib/uci/upload/'
config internal 'languages'
config internal 'sauth'
option sessionpath '/tmp/luci-sessions'
option sessiontime '3600'
config internal 'ccache'
option enable '1'
config internal 'themes'
option Bootstrap '/luci-static/bootstrap'
/usr/lib/lua/
├── luci │ ├── controller #各功能的進入點 │ ├── model │ └── view │ └── cbi #主要的htm都在這(樣板) └── uci.so
/www/luci-static/
├── bootstrap │ ├── cascade.css │ ├── favicon.ico │ ├── html5.js │ └── mobile.css └── resources ├── bandwidth.svg ├── cbi ├── cbi.js ├── connections.svg ├── icons ├── load.svg ├── wifirate.svg ├── wireless.svg └── xhr.js
(The main folder for static resources: js, css..., We can use <%=media%> to link to this folder)